<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%= Html.Encode(ViewData["PersonName"]) %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%= Html.Encode(ViewData["PersonName"]) %></h2>
    <p>
        <%
            Start.Models.Person person = ViewData["Person"]
                as Start.Models.Person;
            if (person != null)
            {
        %>
        <p>
            Name:
            <%= Html.Encode(person.Name) %>
        </p>
        <p>
            Date Added:
            <%= Html.Encode(person.DateAdded) %>
        </p>
        <% } %>
    </p>
</asp:Content>
